<!--{eval $_TPL['titles'] = array($type_title);}-->
<!--{eval $friendsname = array(1 => '仅好友可见',2 => '指定好友可见',3 => '仅自己可见',4 => '凭密码可见');}-->

<!--{template header}-->

<!--{if !empty($_SGLOBAL[inajax])}-->
	<div id="space_blog" class="feed">
		<h3 class="feed_header">
			<a href="cp.php?ac=blog" class="r_option" target="_blank">发表</a>
			{$type_title}(共 $count 篇)
		</h3>
		<!--{if $count}-->
		<ul class="line_list">
		<!--{loop $list $value}-->
			<li>
				<span class="gray r_option"><!--{date('m-d H:i',$value[dateline],1)}--></span>
				<h4><a href="space.php?uid=$space[uid]&do=blog&id=$value[blogid]" target="_blank" <!--{if $value[magiccolor]}--> class="magiccolor$value[magiccolor]"<!--{/if}-->>$value[subject]</a></h4>
				<div class="detail">
					$value[message]
				</div>
			</li>
		<!--{/loop}-->
		</ul>
		<!--{if $pricount}-->
		<div class="c_form">本页有 $pricount 篇{$type_title}因作者的隐私设置而隐藏</div>
		<!--{/if}-->
		<div class="page">$multi</div>
		<!--{else}-->
		<div class="c_form">还没有相关的{$type_title}。</div>
		<!--{/if}-->
	</div>
<!--{else}-->

<!--{if $space[self]}-->
<div class="tabs_header">
	<ul class="tabs">
		<li class="active"><a href="space.php?uid=$space[uid]&do=$do&type=$type"><span>最新{$type_title}</span></a></li>
		<li class="null"><a href="cp.php?ac=blog&type=$type">添加新{$type_title}</a></li>
	</ul>
		
	<div class="searchbar floatright">
	<form method="get" action="space.php">
		<input name="searchkey" value="" size="15" class="t_input" type="text">
		<input name="searchsubmit" value="搜索" class="submit" type="submit">
		<input type="hidden" name="searchmode" value="1" />
		<input type="hidden" name="do" value="blog" />
		<input type="hidden" name="view" value="me" />
		<input type="hidden" name="type" value="$type" />
		<input type="hidden" name="orderby" value="dateline" />
	</form>
	</div>
</div>		
<!--{else}-->
<!--{eval 
	$_TPL['spacetitle'] = "动态";
	$_TPL['spacemenus'][] = "<a href=\"space.php?uid=$space[uid]&do=$do&view=me\">TA的所有动态</a>";
}-->
<!--{template space_menu}-->
<div class="h_status">按照发布时间排序</div>
<!--{/if}-->
		
<div id="content" style="width:640px;">
	
	
	<!--{if $searchkey}-->
	<div class="h_status">以下是搜索 <span style="color:red;font-weight:bold;">$searchkey</span> 结果列表</div>
	<!--{/if}-->
	
	<!--{if $count}-->
	<div class="entry_list">
	
		<table width="100%" cellspacing="0" cellpadding="3" class="infotable">
			<!--{loop $list $key $value}-->
			<tr>
				<td width="15"valign="top"><!--{eval echo $perpage*($page-1)+$key+1;}--></td>
				<td valign="top"><a href="space.php?uid=$value[uid]&do=$do&id=$value[blogid]" <!--{if $value[magiccolor]}--> class="magiccolor$value[magiccolor]"<!--{/if}-->>$value[subject]</a></td>
				<td  width="255" valign="top">
					<a href="javascript:;">{$_SN[$value[uid]]}</a> <span class="gray"><!--{date('Y-m-d H:i',$value[dateline],1)}--></span><span class="pipe">|</span>
					
					<!--{if $_SGLOBAL[supe_uid] == $value[uid] || checkperm('manageblog')}-->
						<a href="cp.php?ac=blog&blogid=$value[blogid]&op=edit">编辑</a><span class="pipe">|</span>
						<a href="cp.php?ac=blog&blogid=$value[blogid]&op=delete" id="blog_delete_$value[blogid]" onclick="ajaxmenu(event, this.id)">删除</a>
					<!--{/if}-->
				</td>
			</tr>
			<tr>
				<td width="15" valign="top">&nbsp;</td>				
				<td colspan="2" valign="top">
					<div class="image_right l_text s_clear" id="blog_article_$value[blogid]">
						$value[message]
					</div>
					<div class="gray">
						<!--{if $classarr[$value[classid]]}-->分类: <a href="space.php?uid=$value[uid]&do=blog&classid=$value[classid]">{$classarr[$value[classid]]}</a><span class="pipe">|</span><!--{/if}-->
						<!--{if $value[viewnum]}--><a href="space.php?uid=$value[uid]&do=$do&id=$value[blogid]">$value[viewnum] 次阅读</a><span class="pipe">|</span><!--{/if}-->
						<!--{if $value[replynum]}--><a href="space.php?uid=$value[uid]&do=$do&id=$value[blogid]#comment">$value[replynum] 个评论</a><!--{else}-->没有评论<!--{/if}-->
					</div>
					<div style="height:10px;border-bottom:1px solid #ccc;margin-bottom:5px;"></div>
				</td>
			</tr>
			<!--{/loop}-->
		</table>		
	</div>
	
	<div class="page">$multi</div>
	
	<!--{else}-->
	<div class="c_form">还没有相关的{$type_title}。</div>
	<!--{/if}-->

</div>

<div id="sidebar" style="width:150px;">

<!--{if $classarr}-->
	<div class="cat">
	<h3>{$type_title}分类</h3>
	<ul class="post_list line_list">
		<li<!--{if !$_GET[classid]}--> class="current"<!--{/if}-->><a href="space.php?uid=$space[uid]&do=blog&type=$type">全部{$type_title}</a></li>
		<!--{loop $classarr $classid $classname}-->
		<li<!--{if $_GET[classid]==$classid}--> class="current"<!--{/if}-->>
			<!--{if $space[self]}-->
				<a href="cp.php?ac=class&op=edit&classid=$classid" id="c_edit_$classid" onclick="ajaxmenu(event, this.id)" class="c_edit">编辑</a>
				<a href="cp.php?ac=class&op=delete&classid=$classid" id="c_delete_$classid" onclick="ajaxmenu(event, this.id)" class="c_delete">删除</a>
			<!--{/if}-->
			<a href="space.php?uid=$space[uid]&do=blog&classid=$classid&type=$type">$classname</a>
		</li>
		<!--{/loop}-->
	</ul>
	</div>
<!--{/if}-->



</div>

<script>
function fuidgoto(fuid) {
	window.location.href = "space.php?do=blog&view=we&fuid="+fuid;
}
</script>
<!--{/if}-->
	
<!--{template footer}-->